/**
 * 获取所有基本方块的权重
 * @param {*} basicBlocks 基本方块列表
 * @returns 权重
 */
export const getBasicBlocksWeight = (basicBlocks) => {
  let weight = 0;
  for (const block of basicBlocks) {
    weight += block.generateWeight;
  }
  return weight;
};
